﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="uery" />
    <meta name="description" content="" />
    <title>登录-积分商城后台</title>
    <base href="/admin/" />
    <link href="css/global.css" rel="stylesheet" type="text/css" />
    <link href="css/login.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <img src="images/login_oa.png" alt="" id="background" />
    <div class="login">
        <div class="login_main">
            <div class="login_tip02"><img src="images/login_tip02.png" width="195" height="203"></div>
            <div class="login_tab02">
                <div class="login_inpbg">
                    <div class="login_inp02"><input id="username" name="username" type="text" class="inp3" value="" placeholder="请输入您的账号" style="border:none;" validatetype="*notempty" validateoffset="8,-45" onkeypress="if (event.which == 13) { getSumbit(); this.blur(); }" /></div>
                    <div class="login_inp02" style="margin-bottom:15px;"><input id="password" name="password" type="password" class="inp4" value="" placeholder="请输入您的密码" style="border:none;" validatetype="*notempty" validateoffset="8,-45" onkeypress="if (event.which == 13) { getSumbit(); this.blur(); }" /></div>
                </div>
                <div class="login_line" style="padding:8px 0;width:350px;"><a href="#" class="fl" style="color:#535353;font-size:14px;">忘记密码？</a><a href="#" class="fr apply02" style="color:#535353;font-size:14px;">申请试用</a></div>
                <div class="login_btn"><input name="" type="button" value="登 录" style="border-radius:5px;width:350px;" onclick="getSumbit()" /></div>
            </div>
        </div>
        <div class="login_foot03"><a href="http://www.tops001.com">卡考官网</a> &nbsp;|&nbsp; <a href="#">联系我们</a> &nbsp;|&nbsp; <a href="#">常见问题</a></div>
        <div class="login_foot02"> COPYRIGHT © 2013-2015 KAKAO.ALL RIGHTS RESERVED  卡考网络有限公司版权所有-浙ICP备10046324</div>
    </div>
    <script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="js/kk.js"></script>
    <script type="text/javascript" src="js/formValidator.js"></script>
    <script type="text/javascript" src="js/jquery.fullbg.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
	    $("#background").fullBg();
    });
    function getSumbit() {
        var username = $.trim($("#username").val());
        var password = $.trim($("#password").val());
        if (!validate(".login input[validateType]")) {
            return;
        }
        kk.api.post('/Login/Login', { username: username, password: password, provider: 'provider' }, function (res) {
            $('body').html(res);
            //if (res.Data = 1) {
            //    location.href = "sreach.html";
            //} else {
            //    kk.popup("账号不存在或密码错误", "error", 1000);
            //}
        });

    }
    </script>

</body>
</html>